//
//  MyNavgationView.h
//  豆瓣
//
//  Created by Bruce_Lin on 15/4/28.
//  Copyright (c) 2015年 Bruce_Lin. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface MyNavgationView : UIView
@property(nonatomic, retain)UIImageView *hideView;
@property(nonatomic, retain)UIImageView *right;
@property(nonatomic, retain)NSString *titleName;
@property(nonatomic, retain)NSString *rightImageName;
@property(nonatomic, assign)id rightTarget;
@property(nonatomic, assign)SEL rightAction;
@property(nonatomic, assign)id leftTarget;
@property(nonatomic, assign)SEL leftAction;

/**
 *  创建导航标题
 *
 *  @param titleName 标题名
 */
- (void)creatTitle:(NSString *)titleName;

/**
 *  用图片名创建导航右侧按钮
 *
 *  @param imageName 图片名
 */
- (void)creatRightButtonWithImage:(NSString *)imageName;

/**
 *  用文字创建导航右侧按钮
 *
 *  @param str 要显示的文字字符串
 */
- (void)creatRightButtonWithLabel:(NSString *)str;

/**
 *  创建右侧分享收藏按钮
 *
 *  @param imageName 图片名
 */
- (void)creatRightButtonToShareOrCollect:(NSString *)imageName gestrue:(UIGestureRecognizer *)gestrue;

/**
 *  创建左侧图片按钮
 *
 *  @param imageName 图片名
 */
- (void)creatLeftButtonWithImage:(NSString *)imageName;
@end
